package com.poetry.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@TableName("author")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Author {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 朝代
     */
    private String dynasty;

    /**
     * 用户是否收藏
     */
    @TableField(exist = false)
    private Boolean isLike;

    /**
     * 作者介绍
     */
    private String description;

    /**
     * 出生年份
     */
    private String birthYear;

    /**
     * 死亡年份
     */
    private String deathYear;

    /**
     * 作者图片
     */
    private String image;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
